package com.chuangsi.project.admin.dto.admin.defeat.app;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

@Data
public class ReqDefeadAddDto {

    @ApiModelProperty(value = "姓名")
    @Size(max = 100, message = "姓名长度过长")
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "电话")
    @Size(max = 50, message = "电话长度过长")
    @NotBlank(message = "电话不能为空")
    private String phone;

    @ApiModelProperty(value = "品牌")
    @Size(max = 255, message = "品牌长度过长")
    @NotBlank(message = "品牌不能为空")
    private String brand;

    @ApiModelProperty(value = "车型")
    @Size(max = 100, message = "车型长度过长")
    @NotBlank(message = "车型不能为空")
    private String model;

    @ApiModelProperty(value = "部门id")
    @NotNull(message = "部门id不能为空")
    private Long deptId;

    @ApiModelProperty(value = "0：售前 1：售后")
    @NotNull(message = "销售类型参数不能为空")
    @Max(value = 1,message = "销售类型参数错误")
    @Min(value = 0,message = "销售类型参数错误")
    private Integer saleStatus;

    @ApiModelProperty(value = "驾龄")
    @NotNull(message = "驾龄参数不能为空")
    @Max(value = 4,message = "驾龄参数错误")
    @Min(value = 1,message = "驾龄参数错误")
    private Integer drivingExperience;

    @ApiModelProperty(value = "首次购车  0：是 1：否")
    @NotNull(message = "首次购车参数不能为空")
    @Max(value = 1,message = "首次购车参数错误")
    @Min(value = 0,message = "首次购车参数错误")
    private Integer firstCar;

    @ApiModelProperty(value = "战败原因")
    @Size(max = 255,min = 10,message = "战败原因长度错误")
    @NotBlank(message = "战败原因不能为空")
    private String reason;

}
